package com.hw.springcloud.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname: LogConfig
 * @Description: OpenFeign的日志配置类
 * @Date: 2021/8/23
 * @Author: huwei
 */
@Configuration
public class LogConfig {

    /**
     * 配置Feign的日志信息
     * @return
     */
    @Bean
    Logger.Level getFeignLog(){
        // 以Full等级放回日志
        return Logger.Level.FULL;
    }
}
